var express = require('express');
var router = express.Router();
const config = require('../config');
var mainUrl = config.mainUrl;
var apiUrl = config.apiUrl;
/* GET 首页 */
router.get('/', function(req, res, next) {
    res.render('index',{mainUrl:mainUrl,apiUrl:apiUrl,title:'宜葆农科'});
});
/* GET 首页 */
router.get('/home', function(req, res, next) {
    res.render('index',{mainUrl:mainUrl,apiUrl:apiUrl,title:'宜葆农科'});
});

/* GET 联系我们 */
router.get('/about/contact', function(req, res, next) {
    res.render('contact',{mainUrl:mainUrl,apiUrl:apiUrl,title:'联系我们'});
});

/* GET 加入我们 */
router.get('/about/joinus', function(req, res, next) {
    res.render('joinus',{mainUrl:mainUrl,apiUrl:apiUrl,title:'加入我们'});
});

/* GET 企业介绍 */
router.get('/about/introduction', function(req, res, next) {
    res.render('introduction',{mainUrl:mainUrl,apiUrl:apiUrl,title:'企业介绍'});
});

/* GET 微秸宝 */
router.get('/case/wjb', function(req, res, next) {
    res.render('wjb',{mainUrl:mainUrl,apiUrl:apiUrl,title:'微秸宝'});
});

/* GET 微植保 */
router.get('/case/wzb', function(req, res, next) {
    res.render('wzb',{mainUrl:mainUrl,apiUrl:apiUrl,title:'微植保'});
});

/* GET 有机示范县 */
router.get('/case/modelArea', function(req, res, next) {
    res.render('modelArea',{mainUrl:mainUrl,apiUrl:apiUrl,title:'有机示范县'});
});

/* GET 技术支持 */
router.get('/technology', function(req, res, next) {
    res.render('technology',{mainUrl:mainUrl,apiUrl:apiUrl,title:'技术支持'});
});

/* GET 农药监管平台 */
router.get('/case/inspection', function(req, res, next) {
    res.render('inspection',{mainUrl:mainUrl,apiUrl:apiUrl,title:'农药监管平台'});
});


module.exports = router;